package com.example.demo.mapper;

import com.example.demo.pojo.User;
import com.example.demo.pojo.UserLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.annotation.Resource;
import java.lang.annotation.Retention;
import java.util.HashMap;
import java.util.Map;

/**
 * @author admin
 */

@Mapper
public interface UserLogMapper {
    UserLog findByUsername(@Param("username") String username);
    int existsByUsername(@Param("username") String username);
    int existsByEmail(@Param("email") String email);
    int insertUser(UserLog user);
    int updateUser(UserLog user);
    UserLog findByMap(Map<String, Object> map);
    int existsByPhone(@Param("phone")String phone);
}
